package com.biz.primus.ms.commodity.feign;

import com.biz.primus.commodity.vo.unused.MemberIdRequestVo;
import com.biz.primus.commodity.vo.unused.UserResponseVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author defei
 * @date 2017/9/13
 */
@FeignClient(qualifier = "vendorFeignClient", name = "service-vendor")
public interface UserFeignClient {

    @GetMapping("findByMemberId")
    UserResponseVo findByMemberId(@RequestParam("memberId") Long memberId);

    @PostMapping("findByMemberIdCondition")
    UserResponseVo findByMemberIdCondition(@RequestBody MemberIdRequestVo memberIdRequestVo);
}
